package com.saris.primego.dao;

import com.saris.primego.pojo.entity.SetmealDish;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SetmealDishRepository extends JpaRepository<SetmealDish, Long> {

    List<SetmealDish> findSetmealDishByDishId(Long dishId);

    List<SetmealDish> getBySetmealId(Long setmealId);

    void deleteAllBySetmealId(Long setmealId);

    List<SetmealDish> findAllBySetmealId(Long setmealId);

    List<SetmealDish> getAllBySetmealId(Long setmealId);
}
